#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QIcon>
#include<QPainter>
#include<QDebug>
#include "intro.h"
#include <QMatrix>
#include <QMediaPlayer>
#include <QSound>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void paintEvent(QPaintEvent *);

    void initScene();
    //背景音乐
    QMediaPlayer* bgGame;
    bool is_end= false;//背景音乐循环是否停止
    void initBgm();

    intro * introduction = NULL;
    PlayScene * play = NULL;
private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
